<?php

$table = Nuo::getTable('core@locale.phrase');

foreach($xml->xpath('//territory') as $ele){
    try{
    $type = (string)$ele->attributes()->type;
    $value = (string)$ele;
    //$table->insert(array('phrase_name'=>'territory.'.$type,'default_value'=>$value));
    echo "$type=$value </br>";
    }catch(Exception $e){
    }
}
